//
//  DCSecureKeyboardAdapter.h
//  DCSecureKeyboard
//
//  Created by 张涛 on 2020/12/23.
//  Copyright © 2020 DC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DCUtilKit/DCError.h>
#import <UIKit/UIKit.h>
#import "PowerEnterUITextField.h"

NS_ASSUME_NONNULL_BEGIN

@interface DCSecureKeyboardAdapter : NSObject

@property(nonatomic,strong) PowerEnterUITextField *checkPasswordUITextField;
@property(nonatomic,strong) NSMutableDictionary *checkPasswordUITextFields;

- (void) createSecureKeyboard:(NSDictionary* __nullable)config parentViewController:(UIViewController*)parentViewController contentChanged:(void(^)(NSDictionary *changed))contentChanged callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;

- (void) openSecureKeyboard:(NSString*)keyboardId config:(NSDictionary* __nullable)config parentViewController:(UIViewController*)parentViewController contentChanged:(void(^)(NSDictionary *changed))contentChanged callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;

- (void) closeSecureKeyboard:(NSString*)keyboardId;

@end

NS_ASSUME_NONNULL_END
